package com.yusheng.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ConverterFormatUtils {
    //将格式为 [123，321] 转换成为 123/321
    public static String DataFormatConverter(String[] array){
        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < array.length; i++) {
            sb.append(array[i]);
            if (i < array.length - 1) {
                sb.append("/");
            }
        }

        return  sb.toString();
    }

}
